import request from "@/utils/request";

export function selectTypeData(params) {
  //return request.post("http://192.168.80.190:8000/type", params);
  return request.get(`http://192.168.80.190:8000/selectMajorCount/${params['year'].value}/${params['abcode'].value}`);
}


export function selectWordData(params) {
  console.log('params', params)

  return request.get(`http://192.168.80.190:8000/zhihu_hot/${params['year'].value}`);
}

export function selectBoxChartData(params) {

  return request.get(`http://192.168.80.190:8000/school_type/${params['abcode'].value}`);
}
export function selectOtherData(params) {
  return request.get(`http://192.168.80.190:8000/weather/${params['year'].value}/${params['abcode'].value}`);
}


export function selectYearValue(params) {
  return request.get(`http://192.168.80.190:8000/benke_rate/${params['year'].value}/${params['abcode'].value}`);
  // return request.post("/liquid/selectYearValue", params);
}
